package com.mail.dubbo.mapper;

import com.mail.model.db.SmsFlashPromotionSession;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * <p>
 * 限时购场次表 Mapper 接口
 * </p>
 *
 * @author WJZ
 * @since 2022-06-20
 */
public interface SmsFlashPromotionSessionMapper extends BaseMapper<SmsFlashPromotionSession> {
@Select("select * from sms_flash_promotion_session")
    List<SmsFlashPromotionSession> selectAll();
@Update("update sms_flash_promotion_session set  status=#{status} where id=#{id}")
    void updateStatusById(@Param("id") Long id,@Param("status") Long status);

}
